%% read measurements data
phantom_name = 'data_ring_{-1}.h5';
emitter = 0; %from 0 to 127
p  = h5read(phantom_name,['/' num2str(emitter)]);

%plot waveform profile
time_length = size(p,2);
times = 1/25:1/25:time_length/25;
plot(times,p(512,:));xlabel('time [\mu s]'); ylabel('amplitude');
title('emitter 0, receiver 511')

%%read source pulse data
load source300.mat
times = 1/25:1/25:300/25;
% plot source profile
figure;
plot(times,source);xlabel('time [\mu s]'); ylabel('amplitude');
title('source profile')
%% read transducers location data
load emitter_locations_128.mat
figure; plot(emitter_loc(2,:),emitter_loc(1,:),'-*'); 
xlabel('mm'); ylabel('mm')


